export const columns = [
  { label: '', prop: 'index', width: '80px', type: 'index' },
  { label: '楼层', prop: 'floorName', width: '120px' },
  {
    label: '车库类型',
    prop: 'type',
    type: 'select',
    options: [
      { label: '地下', value: 1 },
      { label: '地面', value: 2 },
      { label: '立体', value: 3 },
    ],
    width: '150px',
  },
  { label: '建筑面积', prop: 'area', width: '150px' },
  { label: '车位数', prop: 'spaceNum', width: '150px' },
  { label: '车库图片', prop: 'imageUrl', type: 'image' },
  { label: '结构图', prop: 'structureUrl', type: 'image' },
  { label: '状态', prop: 'status', width: '100px', type: 'select', options: $enums.status },
  { label: '操作', prop: 'action', slotName: 'action', width: '120px', fixed: 'right' },
]

export const formOptions = [
  {
    label: '车库类型',
    prop: 'type',
    type: 'select',
    options: [
      { label: '地下', value: 1 },
      { label: '地面', value: 2 },
      { label: '立体', value: 3 },
    ],
    rules: [{ required: true, message: '车库类型不能为空' }],
  },
  { label: '楼层', prop: 'floorName', rules: [{ required: true, message: '楼层名称不能为空' }] },
  { label: '建筑面积', prop: 'area', type: 'number', unit: 'm²' },
  { label: '车库图片', prop: 'imageUrl', type: 'image', limit: 1, span: 3 },
  { label: '结构图', prop: 'structureUrl', type: 'image', limit: 1, span: 3, width: '1365', height: '1365' },
  { label: '备注', prop: 'remark', type: 'textarea', span: 3 },
]
